package cn.bgs.service.impl;

import cn.bgs.dao.StudentGradeRelationMapper;
import cn.bgs.pojo.StudentGradeRelation;
import cn.bgs.service.StudentGradeRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentGradeRelationServiceImpl implements StudentGradeRelationService {

    @Autowired
    private StudentGradeRelationMapper studentGradeRelationMapper;

    @Override
    public int addGraStu(String stuId, String gradeId, String gradeName) {
        StudentGradeRelation ss = new StudentGradeRelation();
        ss.setStudentId(stuId);
        ss.setGradeGradeId(gradeId);
        ss.setGradeGradeName(gradeName);

        return studentGradeRelationMapper.addGraStu(ss);
    }


}
